package com.ming.client;

import com.ming.pojo.Product;
import com.ming.service.UserRemoteClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author Xu
 * Created by Intellij IDEA.
 * @create 2021/8/2 15:44
 */
@FeignClient(value = "eureka-provider",fallback = UserRemoteClientFallback.class)
public interface UserRemoteClient {

    @GetMapping("/products")
    List<Product> listProducts();

}
